package com.example.app.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.Instant;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Conversation {
    private Long id;
    private String type; // PRIVATE, GROUP
    private Long user1Id;
    private Long user2Id;
    private Long lastMessageId;
    private String lastMessageContent;
    private Instant lastMessageAt;
    private Integer unreadCount;
    private Instant createdAt;
    private Instant updatedAt;
    private User otherUser;
}
